package com.bit.spring_mybatisdemo1.service;

import com.bit.spring_mybatisdemo1.mapper.UserInfoMapper;
import com.bit.spring_mybatisdemo1.model.UserInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserInfoService {

    @Autowired
    public UserInfoMapper mapper;

    public List<UserInfo> selectAllUser(){
        List<UserInfo> list=mapper.selectAllUser();
        return list;
    }

}
